package com.xinghai.web.utils;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

public class CodeUtil {

    public static  String GetBindNum(){
                 String[] beforeShuffle = new String[] {
                                 "0","1", "2", "3", "4", "5", "6", "7", "8", "9",
                                 "a","b", "d", "c", "e", "f", "g", "h", "i", "j",
                                 "0","1", "2", "3", "4", "5", "6", "7", "8", "9",
                                 "k", "l", "m", "n", "o", "p", "q", "r", "s", "t",
                                 "u", "v","w", "x", "y", "z" };
                 List<String> list = Arrays.asList(beforeShuffle);
                 Collections.shuffle(list);
                 StringBuilder sb = new StringBuilder();
        for (String s : list) {
            sb.append(s);
        }
                 String afterShuffle = sb.toString();
        return afterShuffle.substring(3, 9);
             }
}
